package dev.ideas.funkyj.sequence;

import org.junit.Test;

import java.util.Arrays;

import static dev.ideas.funkyj.sequence.Sequence.*;
import static org.junit.Assert.*;

/**
 */
public class In {

    @Test
    public void t1() {

        assertEquals(
                from("1", "2", "3", "4").where(integer.in(1, 2)).asList(),
                Arrays.asList("1", "2"));

        assertEquals(
                from("1", "2", "3", "4").where(in("1", "2")).asList(),
                Arrays.asList("1", "2"));

        assertEquals(
                from("1", "2", "3", "4").to(integer).where(in(1, 2)).asList(),
                Arrays.asList(1, 2));
    }
}
